package com.it;

import com.it.pojo.Article;
import com.it.pojo.params.article.ArticleQuery;
import com.it.pojo.vo.article.ArticlePlateVO;
import com.it.pojo.vo.article.ArticleVO;

import java.util.List;
import java.util.Map;

public interface ArticleService {


    /**
     * 返回值为数值，因为前段业务需要，发布成功后要跳转到详情页
     *
     * @param article
     * @return
     */
    Integer saveArticle(Article article);


    /**
     * 根据文章id查询 详情页的信息
     *
     * @param articleId
     * @return
     */
    Map<String, Object> getArticletVO(Integer articleId);

    List<ArticlePlateVO> getArticleVOByPlateId(Integer plateId);

    /**
     * 获取首页帖子数据
     *
     * @return
     */
    Map<String, Object> listArticleIndexVO(Integer pageNum,Integer limit);
}
